import request from '@/utils/request'

// 查询原材料进场台账列表
export function listBsJctz(query) {
  return request({
    url: '/ycl/bsJctz/list',
    method: 'get',
    params: query
  })
}

// 查询原材料进场台账详细
export function getBsJctz(tzId) {
  return request({
    url: '/ycl/bsJctz/' + tzId,
    method: 'get'
  })
}

// 新增原材料进场台账
export function addBsJctz(data) {
  return request({
    url: '/ycl/bsJctz',
    method: 'post',
    data: data
  })
}

// 修改原材料进场台账
export function updateBsJctz(data) {
  return request({
    url: '/ycl/bsJctz',
    method: 'put',
    data: data
  })
}

// 删除原材料进场台账
export function delBsJctz(tzId) {
  return request({
    url: '/ycl/bsJctz/' + tzId,
    method: 'delete'
  })
}
